home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / toadfr12.zip / TOADFREE.DOC < prev   
Text File  |  1991-04-17  |  1KB  |  38 lines

  1. TOADFREE.ZIP    Report drive free space as ERRORLEVEL
  2.  
  3. TOADFREE disk free space utility
  4. Usage:  TOADFREE D n
  5. Where D is a target drive
  6. and n is a figure from 1 to 4,294,967,295
  7. Returns ERRORLEVEL 0 if that much free space
  8.      or ERRORLEVEL 1 if less.
  9.  
  10. This was requested by SEMPER BBS SYSOP who wanted to insure there
  11. was sufficient free space on a drive before he copied some files
  12. from the upload drive to his storage drive.
  13.  
  14. At first I assumed a byte-sized parameter (e.g. 0..255) as requested
  15. free space in KB would be adequate ... but Nooooooooo .... he wanted
  16. more.  Well, I hope 4 Gigabytes will do him.  (I threw in the comma-
  17. gobbling for free.)
  18.  
  19. He *says* it works just fine ... which is nice, I guess.  I couldn't
  20. really test it very well on my old 80286 XT clone.  The program reports
  21. FALSE (ERRORLEVEL 0) when I request 4 Gigabytes from my ancient Seagate
  22. 20MB hard disk .. so theoretically it works.
  23.  
  24. (Oh, yeah, if you don't like gigabytes and prefer talking in hex, just
  25. call it 0FFFFFFFH, the max value an unsigned long integer will hold.
  26. Or DX:AX .. or whatever ...)
  27.  
  28. As usual, bits and pieces of code, logic, etc. cribbed from all over.
  29. PC Magazine's FREE, an assembly language library's AtoL conversion,
  30. etc.  And all hacked to within an inch of its life.
  31.  
  32. Credits?  What credits?
  33.  
  34. Given to the public domain
  35. David Kirschbaum
  36. Toad Hall
  37. kirsch%maxemail@wsmr-simtel20.army.mil
  38.